import scala.collection.mutable.HashSet

package codegen
{
	class SmartSyntaxNode extends SyntaxNode 
	{
	   protected var dependents : HashSet[String] = HashSet[String]();
	   var alignment : String = "Hor"
	   
	   def isDependent(name : String) : Boolean = dependents.contains(name);
	   def addDep(node : SyntaxNode) = 
	   {
	     dependents.add(node.name); 
	     addChild(node)}
	   
	}
}